<?php

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;

class ChopHandSheet extends Model
{
    protected $fillable = [
        'activity_id',
        'option_id',
        'fill_content',
    ];

    protected $casts = [
        'option_id' => 'json',
        'fill_content' => 'json',
        'user_agent' => 'json',
    ];

    public function paper()
    {
        return $this->hasOne(ChopHandPaper::class, 'id', 'paper_id');
    }
}
